module ApplicationHelper

  def get_dep_select
    Department.where.not(dpno: '000000').select('concat(case level when 3 then "----    " else "" end, dpname) as dpname, id')
  end

  def get_types
    #type is 1
    #['民族集团', '利客便利店', '北京华联']
    BusType.all.select(:name, :id)
  end

  def get_term_types
    #type is 2
    #['3月', '6月', '12月']
    TermType.all.select(:name, :id)
  end

  def get_acct_types
    #type is 3
    ['银行卡', '存单']
  end

  def get_id_types
    #type is 4
    ['身份证']
  end

end
